home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Language/OS - Multiplatform Resource Library
/
LANGUAGE OS.iso
/
txl
/
modula2.lha
/
Modula2
/
Modula2.Txl
< prev
Wrap
Text File
|
1993-07-19
|
329b
|
13 lines
% Test of TXL Modula 2 Grammar
% Takes as input Modula 2 programs and outputs pretty-printed ones.
include "Modula2.Grammar"
% Dummy rule that should do nothing to any real program.
rule mainRule
replace [statement]
ANYTHING__NOT__IN__A__PROGRAM_____ := 999
by
ANYTHING__NOT__IN__A__PROGRAM_____ := 1000 - 1
end rule